const api_port = 5000;
const serve_port = 8080;
module.exports = {
  assetsDir: "static",
  outputDir: "../templates/",
  devServer: {
    port: serve_port,
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        target: `http://localhost:${api_port}/api`,
        changeOrigin: true,
        pathRewrite: {
          ["^" + process.env.VUE_APP_BASE_API]: ""
        }
      }
    }
  }
};
